const a = function (_, {data: items}, { xe: { pluck } }) {
  if (!items.length) return {};
  items.forEach((i) => {
    i.value = (i.value || 0).toFixed(2);
    i.value2 = (i.value2 || 0).toFixed(2);
  });
  return {
    tooltip: {
      trigger: "axis",
      axisPointer: { type: "shadow", label: { backgroundColor: "#283b56" } },
    },
    legend: {},
    grid: { containLabel: true, top: 80, left: 20, right: 20, bottom: 20 },
    xAxis: {
      type: "category",
      boundaryGap: true,
      data: pluck(items, "name"),
      axisLabel: {
        rotate: 5,
      },
    },
    yAxis: { type: "value", name: "单位: 亿元" },
    series: [
      {
        name: "债务总额",
        type: "bar",
        stack: "value",
        data: pluck(items, "value"),
      },
      {
        name: "债务余额",
        type: "bar",
        stack: "value2",
        data: pluck(items, "value2"),
      },
    ],
  };
};
